home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / alexmisc.tex < prev    next >
Encoding:
Text File  |  1992-08-26  |  943 b   |  28 lines

  1. % some small miscellaneous macros
  2.  
  3. %capital roman numerals
  4. \def\Romannumeral#1{\uppercase\expandafter{\romannumeral#1}}
  5.  
  6. %half in textstyle (smaller --- sometimes looks better)
  7. \def\half{\textstyle{1\over2}}
  8.  
  9. %a couple of useful abbreviations
  10. \def\ie{i.\thinspace e.}
  11. \def\eg{e.\thinspace g.}
  12.  
  13. %slant fractions (slightly offset and smaller a/b)
  14. %usage \slfrac{numerator}/{denominator}
  15. \def\slfrac#1/#2{\leavevmode\kern.1em\raise.5ex\hbox{\the\scriptfont0 #1}
  16. \kern-.1em/\kern-.15em\lower.25ex\hbox{\the\scriptfont0 #2}}
  17.  
  18. % makes real and complex number-set symbols with vertical bars
  19. \def\Reals{{\hbox{$\mathpalette{}{I\kern-.2em R}$}}}
  20. \def\Complexes{{\hbox{$\mathpalette{}{C\kern-.46em
  21.           \vrule depth 0ex height 1.4ex width .05em\kern.41em}$}}}
  22.  
  23. %poor man's bold (The TeXbook, p. 386)
  24. \def\pmb#1{\leavevmode\setbox0=\hbox{#1}%
  25.     \kern-.025em\copy0\kern-\wd0
  26.     \kern.05em\copy0\kern-\wd0
  27.     \kern-.025em\raise.0433em\box0}
  28.